]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Remove a dead check
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 08:40:30 +0000 (03:40 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 10 Dec 2012 19:38:06 +0000 (14:38 -0500)
With the dummy menu item now in place, we will always have a menu.

https://bugzilla.gnome.org/show_bug.cgi?id=689954

js/ui/panel.js

index 712abd7d781e2048b638f10ec7f3ffc90d9ad85a..64a6d43bef7b2b27c99515410783816db0731905 100644 (file)
@@ -599,7 +599,7 @@ const AppMenuButton = new Lang.Class({
 
             menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group);
         } else {
-            if (this.menu && this.menu.isDummyQuitMenu)
+            if (this.menu.isDummyQuitMenu)
                 return;
 
             // fallback to older menu